home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / database / bdem22.zip / BDEMO016.TXT < prev    next >
Text File  |  1994-10-27  |  2KB  |  39 lines

  1. BUILDER CONVERSION FUNCTIONS
  2.  
  3. The Builder Library Conversion Functions Consist of Three Very Simple
  4. Yet Handy Functions.  Hex2Dec() and Dec2Hex() are Virtually Self-
  5. Explanatory, and I Urge You to Look at Their Samples to See How They
  6. Work.  The Use for Asc2Bin() Isn't as Obvious, But is the MOST Useful
  7. Function is This Group.
  8.  
  9. The Asc2Bin() Function is Priceless, and Here is How I Have Evolved
  10. Using It Most Effectively:
  11.  
  12. 1)  Add 1 Field to OPTIONS.DBF for Every Different Printer Escape
  13.     Code Your System Will Require.  You May Also Put the Data in
  14.     the Field At This Time.
  15.  
  16. 2)  Remove the Line or Comment Out the Line in the Builder Generated
  17.     Source That Closes the OPTIONS.DBF Database.  (Or Just Re-Gen
  18.     Your Source for Builder to Do This Automatically -- It Will Detect
  19.     Fields Added to OPTIONS.DBF!)
  20.  
  21. 3)  Add the Neccesary Lines of Code to Save Your New OPTIONS.DBF Fields
  22.     to Memory Variables.  (Generating Code With Additional OPTIONS.DBF
  23.     Fields Will Do this For You)
  24.  
  25. 4)  (Optional) Add a Window to Your Program (Under "Utilities") to Edit
  26.     the Memory Variables Created in Step 3, and Save Them to OPTIONS.DBF
  27.     When Changed.  (Very Simple Builder Window With a VERY Simple
  28.     Conversion Using the GetEdit() Function)
  29.  
  30. 5)  Enter the Command "@ PROW(),PCOL() SAY Asc2Bin(ALLTRIM(YOUR_MEMVAR_HERE))"
  31.     as Part of a Printed Report to Send Your Escape Code.
  32.  
  33. This Method Allows Your Application to Support any Change in Printer
  34. Hardware and it Makes Debugging Printer Escape Codes Easier.
  35.  
  36. Simple But Effective!
  37.  
  38. ** End of File
  39.